<?php htmlTemplate('admin_header_frame.php');?>
<div class="title">菜单列表
<a  href="<?php echo MVC_WWW_HOST.'admin.php/admin/home/addmenu/'?>" class="title_button">添加菜单</a>
</div>
<table width="100%" cellspacing="1" cellpadding="3" id="listTable">
  <tbody><tr>
  	<th align="left">ID</th>  
    <th>一级模块</th>   
    <th align="center">模块</th>    
    <th align="center">动作</th>
    <th align="center">动作名称</th>
    <th align="center">父ID</th>
    <th align="center">可用</th>
    <th align="center">显示</th>
    <th align="center">排序</th>
    <th align="center">打开方式</th>
    <th align="center">操作</th>
  </tr>
	<?php 
	foreach ($rs as $k=>$v):
	?>
   <tr <?php 
   if ($v['pid']==0){
       echo 'style="background:#BBDD99;font-weight:bold;"';
   }
   ?>>
    <td align="left"> <?php echo $v['id'];?></td>    
    <td align="center">   <?php echo $v['pmodule'];?>
    </td>   
     <td align="center">   <?php echo $v['module'];?>
    </td> 
     <td align="center">   <?php echo $v['action'];?>
    </td> 
     <td align="center">   <?php echo $v['name'];?>
    </td> 
     <td align="center">   <?php echo $v['pid'];?>
    </td> 
     <td align="center">   <?php echo $v['isuse'];?>
    </td> 
     <td align="center">   <?php echo $v['isshow'];?>
    </td> 
     <td align="center">   <?php echo $v['sort'];?>
    </td> 
     <td align="center">   <?php echo $v['target'];?>
    </td> 
     
    <td align="center">  
      <a title="编辑" href="<?php echo MVC_WWW_HOST.'admin.php/admin/home/addmenu/id/'.$v['id'];?>">编辑</a> |
      <a title="移除" onclick="getUrl('<?php echo MVC_WWW_HOST.'admin.php/admin/home/setmenu/do/del/id/'.$v['id'];?>',1,1)" href="javascript:;">移除</a>
    </td>   
  </tr>
  <?php endforeach;?>
  
 
 
  </tbody>
</table>
<?php htmlTemplate('admin_footer_frame.php');?>
